﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};
	
	var moneytypeData = Jxstar.findComboData('moneytype');
	var baotype1Data = Jxstar.findComboData('baotype1');
	var planstatusData = Jxstar.findComboData('planstatus');
	var plantypeData = Jxstar.findComboData('plantype');
	var planyearData = Jxstar.findComboData('planyear');
	var yesnoData = Jxstar.findComboData('yesno');
	var resulttypeData = Jxstar.findComboData('resulttype');
	var authtypeData = Jxstar.findComboData('authtype');
	var yesnoData = Jxstar.findComboData('yesno');
	var plantype2Data = Jxstar.findComboData('plantype2');
	var checkdeptData = Jxstar.findComboData('checkdept');
	var projectjdData = Jxstar.findComboData('projectjd');
	var items = [{
		height: '97%',
		width: '97%',
		border: false,
		layout: 'form',
		style: 'padding:10px;',
		items: [{
			anchor:'100%',
			border: false,
			layout:'column',
			border:true,
			xtype:'fieldset',
			title:'基本信息',
			collapsible:false,
			collapsed:false,
			autoHeight:true,
			items:[{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'combo', fieldLabel:'项目类别', name:'money_plan__money_type',
						anchor:'100%', editable:false, allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*',
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: moneytypeData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: moneytypeData[0][0]},
					{xtype:'textfield', fieldLabel:'项目名称', name:'money_plan__plan_name', allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', anchor:'100%', maxLength:100},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'预计总投资(万元)', name:'money_plan__plan_money', defaultval:'0', allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', anchor:'100%', maxLength:12},
					{xtype:'textfield', fieldLabel:'单位', name:'money_plan__plan_unit', anchor:'100%', maxLength:10},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'单价(万元)', name:'money_plan__plan_price', defaultval:'0', anchor:'100%', maxLength:12},
					{xtype:'datefield', fieldLabel:'出厂日期', name:'money_plan__create_date', format:'Y-m-d', anchor:'100%'},
					{xtype:'textfield', fieldLabel:'预计实施时间', name:'money_plan__plan_period', anchor:'100%', maxLength:20},
					{xtype:'datefield', fieldLabel:'申报日期', name:'money_plan__plan_date', defaultval:'fun_getToday()', format:'Y-m-d', allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', anchor:'100%'},
					{xtype:'trigger', fieldLabel:'申报部门', name:'money_plan__dept_name', defaultval:'fun_getDeptName()',
						anchor:'100%', triggerClass:'x-form-search-trigger',
						maxLength:50, allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', editable:false,
						onTriggerClick: function() {
							var selcfg = {pageType:'combogrid', nodeId:'sys_dept', layoutPage:'/public/layout/layout_tree.js', sourceField:'', targetField:'', whereSql:"", whereValue:'', whereType:'', isSame:'1', isShowData:'1', isMoreSelect:'0',isReadonly:'1',fieldName:'money_plan.dept_name'};
							JxSelect.createSelectWin(selcfg, this, 'node_money_modify_gj_form');
						}},
					{xtype:'textfield', fieldLabel:'计划编号', name:'money_plan__plan_code', readOnly:true, anchor:'100%', maxLength:20},
					{xtype:'combo', fieldLabel:'计划包属性', name:'money_plan__bao_type', defaultval:'1',
						anchor:'100%', editable:false, allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*',
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: baotype1Data
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: baotype1Data[0][0]}
				]
			},{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'combo', fieldLabel:'计划状态', name:'money_plan__plan_status', defaultval:'41',
						anchor:'100%', readOnly:true, editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: planstatusData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: planstatusData[0][0]},
					{xtype:'textfield', fieldLabel:'型号规格', name:'money_plan__device_size', anchor:'100%', maxLength:50},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'当年预计付款(万元)', name:'money_plan__year_money', defaultval:'0', allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', anchor:'100%', maxLength:12},
					{xtype:'numberfield', decimalPrecision:2, fieldLabel:'数量', name:'money_plan__plan_num', defaultval:'1', anchor:'100%', maxLength:12},
					{xtype:'textfield', fieldLabel:'生产厂家', name:'money_plan__create_factory', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'固定资产编号', name:'money_plan__asset_code', anchor:'100%', maxLength:20},
					{xtype:'textfield', fieldLabel:'拟选供应商', name:'money_plan__provider', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'申报人', name:'money_plan__plan_user', defaultval:'fun_getUserName()', anchor:'100%', maxLength:20},
					{xtype:'combo', fieldLabel:'计划类型', name:'money_plan__plan_type', defaultval:'yd',
						anchor:'100%', editable:false, allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*',
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: plantypeData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: plantypeData[0][0]},
					{xtype:'combo', fieldLabel:'预算年度', name:'money_plan__plan_year',
						anchor:'100%', editable:false, allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*',
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: planyearData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: planyearData[0][0]},
					{xtype:'textfield', fieldLabel:'父计划编号', name:'money_plan__plan_parentcode', readOnly:true, anchor:'100%', maxLength:20}
				]
			}
			]
		},{
			anchor:'100%',
			border: false,
			layout:'column',
			border:true,
			xtype:'fieldset',
			title:'进度信息',
			collapsible:true,
			collapsed:false,
			autoHeight:true,
			items:[{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textfield', fieldLabel:'投资计划批复文号', name:'money_plan__check_fileno', anchor:'100%', maxLength:100},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'上报金额(万元)', name:'money_plan__app_money', defaultval:'0', anchor:'100%', maxLength:12},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'调概后批复金额(万元)', name:'money_plan__check_moneychk', defaultval:'0', anchor:'100%', maxLength:12},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'立项批复金额(万元)', name:'money_plan__project_money', defaultval:'0', anchor:'100%', maxLength:12},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'已付款金额(万元)', name:'money_plan__money_pay', defaultval:'0', anchor:'100%', maxLength:12},
					{xtype:'combo', fieldLabel:'是否上报国家局', name:'money_plan__up_comp', defaultval:'1',
						anchor:'100%', readOnly:true, editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: yesnoData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: yesnoData[0][0]},
					{xtype:'datefield', fieldLabel:'提交备案时间', name:'money_plan__up_sdate', format:'Y-m-d', anchor:'100%'},
					{xtype:'combo', fieldLabel:'备案结果', name:'money_plan__up_result',
						anchor:'100%', editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: resulttypeData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: resulttypeData[0][0]},
					{xtype:'combo', fieldLabel:'授权形式', name:'money_plan__auth_type',
						anchor:'100%', editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: authtypeData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: authtypeData[0][0]},
					{xtype:'textfield', fieldLabel:'立项批复文号', name:'money_plan__project_fileno', anchor:'100%', maxLength:100},
					{xtype:'datefield', fieldLabel:'立项批复日期', name:'money_plan__project_checkdate', format:'Y-m-d', anchor:'100%'},
					{xtype:'combo', fieldLabel:'是否需要结转', name:'money_plan__has_turn',
						anchor:'100%', editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: yesnoData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: yesnoData[0][0]},
					{xtype:'hidden', fieldLabel:'是否实施包', name:'money_plan__is_dobao', defaultval:'0', anchor:'100%'}
				]
			},{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textfield', fieldLabel:'投资计划批文名称', name:'money_plan__check_name', anchor:'100%', maxLength:150},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'计划批复金额(万元)', name:'money_plan__check_money', defaultval:'0', anchor:'100%', maxLength:12},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'国家局批复金额(万元)', name:'money_plan__check_money2', defaultval:'0', anchor:'100%', maxLength:12},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'合同金额(万元)', name:'money_plan__money_contract', defaultval:'0', anchor:'100%', maxLength:12},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'决算审计金额(万元)', name:'money_plan__cost_money', defaultval:'0', anchor:'100%', maxLength:12},
					{xtype:'combo', fieldLabel:'国家局项目类别', name:'money_plan__money_type2',
						anchor:'100%', editable:false, allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*',
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: plantype2Data
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: plantype2Data[0][0]},
					{xtype:'datefield', fieldLabel:'备案下达时间', name:'money_plan__up_edate', format:'Y-m-d', anchor:'100%'},
					{xtype:'combo', fieldLabel:'项目审批权限', name:'money_plan__check_right2', defaultval:'3',
						anchor:'100%', editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: checkdeptData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: checkdeptData[0][0]},
					{xtype:'textfield', fieldLabel:'国家局项目编号', name:'money_plan__plan_code2', anchor:'100%', maxLength:20},
					{xtype:'trigger', fieldLabel:'主管部门', name:'money_plan__done_deptname',
						anchor:'100%', triggerClass:'x-form-search-trigger',
						maxLength:50, editable:false,
						onTriggerClick: function() {
							var selcfg = {pageType:'combogrid', nodeId:'sys_dept', layoutPage:'/public/layout/layout_tree.js', sourceField:'', targetField:'', whereSql:"", whereValue:'', whereType:'', isSame:'1', isShowData:'1', isMoreSelect:'0',isReadonly:'1',fieldName:'money_plan.done_deptname'};
							JxSelect.createSelectWin(selcfg, this, 'node_money_modify_gj_form');
						}},
					{xtype:'textfield', fieldLabel:'立项批文名称', name:'money_plan__project_checkname', anchor:'100%', maxLength:150},
					{xtype:'combo', fieldLabel:'当前形象进度', name:'money_plan__project_process', defaultval:'10',
						anchor:'100%', editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: projectjdData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: projectjdData[0][0]},
					{xtype:'hidden', fieldLabel:'是否结转', name:'money_plan__is_turn', defaultval:'0', anchor:'100%'}
				]
			}
			]
		},{
			anchor:'100%',
			border: false,
			layout:'column',
			border:true,
			xtype:'fieldset',
			title:'描述信息',
			collapsible:true,
			collapsed:false,
			autoHeight:true,
			items:[{
				border:false,
				columnWidth:0.99,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textarea', fieldLabel:'建设规模和建设内容', name:'money_plan__plan_desc', width:'100%', height:48, maxLength:500},
					{xtype:'textarea', fieldLabel:'年度项目实施内容', name:'money_plan__year_content2', width:'100%', height:48, maxLength:200},
					{xtype:'hidden', fieldLabel:'备注', name:'money_plan__plan_memo', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'申报部门ID', name:'money_plan__dept_id', defaultval:'fun_getDeptId()', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'父计划ID', name:'money_plan__plan_parentid', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'主管部门ID', name:'money_plan__done_deptid', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'主键', name:'money_plan__plan_id', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'申报人ID', name:'money_plan__plan_userid', defaultval:'fun_getUserId()', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'记录状态', name:'money_plan__auditing', defaultval:'0', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'项目id', name:'money_plan__project_id', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'结转日期', name:'money_plan__tran_date', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'国家局批复年度投资(万元)', name:'money_plan__year_money2', defaultval:'0', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'授权时间', name:'money_plan__auth_date', anchor:'100%'}
				]
			}
			]
		}]
	}];
	
	config.param = {
		items: items,
		funid: 'money_modify_gj'
	};

	
	
	return new Jxstar.FormNode(config);
}